﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="SearchBussiness.aspx.cs" Inherits="MockPrjTeam2.Pages.Views.SearchBussiness" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table cellpadding="0" cellspacing="0" style="width: 100%">
  <tr>
      <td colspan="2" style="font-family: Arial, Helvetica, sans-serif; font-size: large; color: #639A18;
                font-weight: bold; width: 592px;">
                Search Bussiness Type
      </td>      
  </tr>
  <tr>
    <td>
        Bussiness Name:&nbsp&nbsp<asp:TextBox ID="txtBussName" runat="server" Width="200px"></asp:TextBox>
    </td>
    <td>
        SIC Code:&nbsp&nbsp<asp:TextBox ID="txtSic" runat="server"></asp:TextBox>
    </td>    
  </tr>
  <tr>
    <td colspan="2">        
        <asp:Button ID="btSearch" runat="server" Text="Search Address" 
            onclick="btSearch_Click" />&nbsp&nbsp
        <asp:Button ID="btNone" runat="server" Text="None" />&nbsp&nbsp
        <asp:Button ID="btClear" runat="server" Text="Clear" />  
        <asp:Button ID="btAdd" runat="server" Text="Create" onclick="btAdd_Click" />      
    </td>    
  </tr>
  <tr>
    <td colspan="2">    
        <asp:GridView ID="GVSearchBussiness" runat="server" AutoGenerateColumns="False" 
            AllowPaging="True" CellPadding="4" ForeColor="#333333" GridLines="None" 
            onpageindexchanging="GVSearchBussiness_PageIndexChanging" 
            onrowcommand="GVSearchBussiness_RowCommand">
            <AlternatingRowStyle BackColor="White" />
            <Columns> 
                <asp:TemplateField HeaderText="Bussiness" ControlStyle-ForeColor="Black">
                <ItemTemplate>
                   <asp:LinkButton ID="btupdate" runat="server" Text='<%#Eval("BusinessName") %>' CommandName="Update" CommandArgument='<%#Eval("BusinessId") %>'></asp:LinkButton>                       
                </ItemTemplate>
                </asp:TemplateField>                               
                <asp:BoundField DataField = "SicCode" HeaderText="SIC Code" />                
            </Columns>
            <EditRowStyle BackColor="#7C6F57" />
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" 
                BorderStyle="None" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#E3EAEB" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F8FAFA" />
            <SortedAscendingHeaderStyle BackColor="#246B61" />
            <SortedDescendingCellStyle BackColor="#D4DFE1" />
            <SortedDescendingHeaderStyle BackColor="#15524A" />
        </asp:GridView>    
    </td>
  </tr>  
 </table>
</asp:Content>
